import Api from './request'

// 获取线下赛事
export const getActivityOfflineListApi = (data) => Api.get("/api/activity/offlineList", data)

// 获取全部赛事
export const getActivityListApi = (data) => Api.get("/api/activity/list", data)

// 获取赛事详情
export const getActivityDetailApi = (data) => Api.get("/api/activity", data)

// 报名赛事活动
export const postActivityApplyApi = (data) => Api.post("/api/activity/apply?id=" + data.id)

// 活动取消报名
export const postActivityCancelApi = (data) => Api.post("/api/activity/cancel?id" + data.id)

// 查看报名人数数据
export const getActivityApplyUserApi = (data) => Api.get('/api/activity/apply/user', data)